Skip to content

feat(favourites): upgrade command library design and responsiveness#801

Closed
BigSimmo wants to merge 4 commits into
mainfrom
cursor/favourites-command-library-db17
Closed

feat(favourites): upgrade command library design and responsiveness#801
BigSimmo wants to merge 4 commits into
mainfrom
cursor/favourites-command-library-db17

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary

Verification

  • Hosted Static PR checks / Build / Unit coverage / Advisory UI on predecessor heads.
  • npm run verify:ui evidence via hosted UI gates on predecessor heads.
  • UI verification not run locally in this babysit pass: relying on hosted Production UI.

Risk and rollout

  • Risk: low; favourites UI presentation and layout only; no retrieval or document-access contract changes.
  • Rollback: revert this PR to restore the prior favourites command library UI.
  • Provider or production effects: None

Clinical Governance Preflight

  • Source-backed claims still require linked source verification before clinical use
  • No patient-identifiable document workflow was introduced or expanded without explicit governance approval
  • Supabase target remains Clinical KB Database (sjrfecxgysukkwxsowpy)
  • Service-role keys and private document access remain server-only
  • Demo/synthetic content remains clearly separated from real clinical sources
  • Source metadata, review status, and outdated/unknown-source behavior remain conservative
  • Deployment classification/TGA SaMD impact was checked when clinical decision-support behavior changed
Open in Web Open in Cursor 

Summary by CodeRabbit

  • New Features
    • Added mobile quick-view filters for All, Source-backed, Pinned, and Recently used favourites.
    • Added clearer pinned indicators and improved tap targets on mobile favourite cards.
    • Added source-backed evidence indicators in the favourites table.
  • UI Improvements
    • Improved responsive table layout when viewing a favourite’s workspace.
    • Updated mobile card styling and simplified browse and quick-view navigation.
    • Adjusted evidence-column visibility for larger screens.

cursoragent and others added 3 commits July 17, 2026 20:31
Presentation-only redesign with responsive layout, source-backed evidence
styling, and 44px touch targets.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
@supabase

supabase Bot commented Jul 17, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The favourites command library adds mobile quick-view navigation, updates mobile card interactions and pinned indicators, and revises desktop table responsiveness with compact columns and source-backed evidence styling.

Changes

Favourites responsive UI

Layer / File(s) Summary
Mobile quick-view navigation
src/components/clinical-dashboard/favourites-library-nav.tsx, src/components/clinical-dashboard/favourites-command-library-page.tsx
Adds horizontally scrollable mobile quick-view chips with counts, active-state calculation, selection handlers, and integrated browse-rail rendering.
Mobile card presentation
src/components/clinical-dashboard/favourites-command-library-page.tsx
Adds full-card selection and focus behavior, pinned indicators, responsive icon styling, revised spacing, typography, and rounded card presentation.
Responsive table and page layout
src/components/clinical-dashboard/favourites-command-library-page.tsx
Adds compact table behavior, responsive evidence columns, pinned and source-backed indicators, updated empty-state colspans, and a wider 2xl layout constraint.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant FavouritesMobileQuickViews
  participant FavouritesCommandLibraryPage
  User->>FavouritesMobileQuickViews: select quick-view chip
  FavouritesMobileQuickViews->>FavouritesCommandLibraryPage: invoke selection handlers
  FavouritesCommandLibraryPage->>FavouritesMobileQuickViews: render updated active state and counts
Loading

Possibly related PRs

  • BigSimmo/Database#689: Overlaps with mobile favourite card overlays and pointer/focus interaction changes.
  • BigSimmo/Database#759: Overlaps with the favourites page redesign, compact table behavior, pin indicators, and mobile quick views.

Suggested reviewers: claude

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: improving favourites command library design and responsiveness.
Description check ✅ Passed The description covers summary, verification, risk/rollback, and clinical governance in a mostly complete way.
Linked Issues check ✅ Passed The changes align with #778 by adding responsive UI updates and source-backed evidence styling without data or retrieval changes.
Out of Scope Changes check ✅ Passed The PR appears limited to the favourites UI and related responsive behavior, with no unrelated changes visible.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/favourites-command-library-db17

Comment @coderabbitai help to get the list of available commands.

@cursor
cursor Bot enabled auto-merge (squash) July 17, 2026 20:59

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/clinical-dashboard/favourites-command-library-page.tsx`:
- Around line 583-589: Update the compact empty-state table rows near the column
definitions and the additional occurrence around the corresponding empty-row
rendering so their colSpan is 5 when compact is true and 6 otherwise. Reuse the
existing compact state and preserve the six-column span for the non-compact
layout.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: bde60f91-2d10-4c22-a0f9-988b958c7672

📥 Commits

Reviewing files that changed from the base of the PR and between 3ff8095 and 1151176.

📒 Files selected for processing (2)
  • src/components/clinical-dashboard/favourites-command-library-page.tsx
  • src/components/clinical-dashboard/favourites-library-nav.tsx

Comment on lines +583 to +589
// With the item workspace open (only at 2xl), the middle column narrows sharply.
// Drop the leading icon and the secondary Evidence column there so titles keep
// room instead of collapsing to a couple of characters.
const compact = Boolean(selectedItemId);
const rowIconClass = compact ? "hidden" : "hidden 2xl:grid";
const evidenceHeadClass = cn("hidden px-3", compact ? "" : "w-[7rem] 2xl:table-cell");
const evidenceCellClass = cn("hidden px-3 align-middle", compact ? "" : "2xl:table-cell");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Use five columns for the compact empty state.

When compact is true, Evidence is hidden at 2xl, but the empty row still uses colSpan={6}, producing an inconsistent table grid.

Proposed fix
-                {[
-                  { colSpan: 5, className: "px-4 py-10 text-center 2xl:hidden" },
-                  { colSpan: 6, className: "hidden px-4 py-10 text-center 2xl:table-cell" },
-                ].map(({ colSpan, className }) => (
+                {(compact
+                  ? [{ colSpan: 5, className: "px-4 py-10 text-center" }]
+                  : [
+                      { colSpan: 5, className: "px-4 py-10 text-center 2xl:hidden" },
+                      { colSpan: 6, className: "hidden px-4 py-10 text-center 2xl:table-cell" },
+                    ]
+                ).map(({ colSpan, className }) => (

Also applies to: 734-737

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/clinical-dashboard/favourites-command-library-page.tsx` around
lines 583 - 589, Update the compact empty-state table rows near the column
definitions and the additional occurrence around the corresponding empty-row
rendering so their colSpan is 5 when compact is true and 6 otherwise. Reuse the
existing compact state and preserve the six-column span for the non-compact
layout.

@BigSimmo BigSimmo closed this Jul 18, 2026
auto-merge was automatically disabled July 18, 2026 06:12

Pull request was closed

@BigSimmo
BigSimmo deleted the cursor/favourites-command-library-db17 branch July 18, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants